package com.study.ssm.mybatis.spring;

import com.study.ssm.mybatis.entity.User;
import com.study.ssm.mybatis.service.UserService;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author zhoujunlin
 * @date 2023年07月20日 19:19
 * @desc
 */
public class TestApplicationContext02 {

    ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("/mybatis/applicationContext02.xml");

    @Test
    public void test01() {
        UserService userService = ctx.getBean("userService", UserService.class);
        userService.save(new User("eeeeeeeeee", "uuuu"));
    }

}
